package com.pyk.mapper;

import com.pyk.entity.QuestionType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface QuestionTypeMapper {

     int insert(QuestionType questionType);

     void updateById(QuestionType questionType);

     void deleteById(Integer id);

     @Select("select * from question_type where id=#{id}")
     QuestionType selectById(Integer id);

     List<QuestionType> selectAll(QuestionType questionType);

     @Select("select * from question_type where name = #{name}")
     List<QuestionType> selectByName(String name);
}
